package com.bdqn.t308.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Controller
public class UserController {

    //@RequestMapping("/user/findUserList")
    @RequestMapping(value = "/user",method = RequestMethod.GET)
    public void findUserList(){

        System.out.println("调用user查询方法.....");

    }

    //@RequestMapping("/user/addUser")
    @RequestMapping(value = "/user",method = RequestMethod.POST)
    public void addUser(){

        System.out.println("调用user新增方法.....");
    }

    //@RequestMapping("/user/updateUser")
    @RequestMapping(value = "/user/{id}",method = RequestMethod.PUT)
    public void updateUser(@PathVariable int id){

        System.out.println("调用user修改方法.....");
    }

    //@RequestMapping("/user/deleteUser")
    @RequestMapping(value = "/user/{id}",method = RequestMethod.DELETE)
    public void deleteUser(@PathVariable int id){

        System.out.println("调用user删除方法.....");

    }
}

